﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace WQDSkin.Forms.Controls.Help
{
    public static class ButtonHelp
    {
        //[AttachedPropertyBrowsableForType(typeof(WQDButton))]
        public static Brush GetMouseOverBackground(DependencyObject obj)
        {
            return (Brush)obj.GetValue(MouseOverBackgroundProperty);
        }

        //[AttachedPropertyBrowsableForType(typeof(WQDButton))]
        public static void SetMouseOverBackground(DependencyObject obj, Brush value)
        {
            obj.SetValue(MouseOverBackgroundProperty, value);
        }

        public static readonly DependencyProperty MouseOverBackgroundProperty =
            DependencyProperty.RegisterAttached("MouseOverBackground",
                typeof(Brush), 
                typeof(ButtonHelp), 
                new UIPropertyMetadata(WQDSystemColors.ThemeBackground));



        public static Brush GetMouseOverBorder(DependencyObject obj)
        {
            return (Brush)obj.GetValue(MouseOverBorderProperty);
        }

        public static void SetMouseOverBorder(DependencyObject obj, Brush value)
        {
            obj.SetValue(MouseOverBorderProperty, value);
        }
         
        public static readonly DependencyProperty MouseOverBorderProperty =
            DependencyProperty.RegisterAttached("MouseOverBorder", 
                typeof(Brush), 
                typeof(ButtonHelp), 
                new PropertyMetadata(WQDSystemColors.ThemeBackground));
         
        public static Brush GetMouseOverForeground(DependencyObject obj)
        {
            return (Brush)obj.GetValue(MouseOverForegroundProperty);
        }

        public static void SetMouseOverForeground(DependencyObject obj, Brush value)
        {
            obj.SetValue(MouseOverForegroundProperty, value);
        }
         
        public static readonly DependencyProperty MouseOverForegroundProperty =
            DependencyProperty.RegisterAttached("MouseOverForeground", 
                typeof(Brush), 
                typeof(ButtonHelp), 
                new PropertyMetadata(new SolidColorBrush(Colors.White)));


    }
}
